Tests for Pugs

Limbic Region on 2005-04-26T01:54:43

autrijus and gang has this neat agreement where they happily add working code in exchange for tests. I installed Pugs and wrote my first piece of perl6 code last night:

http://perlmonks.org/index.pl?node_id=451398

I came across a few unimplemented features and a few things that didn't quite work as I wanted

1. @array.end instead of @array.elems - 1 2. last if defined @array[ $index ]; instead of if ( defined @array[ $index ] ) { last } 3. next/redo not implemented 4. while ( my @array = $ref() ) { ... } instead of my @array; while ( @array = $ref() ) { ... }

In his infinite wisdom, stevan gave me commit access so I checked in my example code and agreed to write tests for the stuff I wanted tomorrow.

Cheers, L~R